<?php
/* 
 * This is an example of business object
 * persistable properties are declared as protected with the exception of primaryKey
 * no persistable are private.
 * The aim is to eliminate simple setter and getters and have only methods
 * of busness logic
 *
 *
 */

class Application_Model_Gallery extends BusinessObject
{
    protected $primarykey = 'id';
    protected $id;
    protected $name;
    protected $description ;

    /**
     * public accessible method
     * @return <type>
     */
    public function doSomeBusinessLogic(){
        return $this->doSomeInternalLogic();
    }

    /**
     * private method
     */
    private function doSomeInternalLogic(){
        return true;
    }
}
